import http from './http.js'

// 获取首页banner数据
export const getBanner = () => {
	return http("user/getBanner")
}

// 获取首页瀑布流数据
export const getHomeList = () => {
	return http('user/getHomeList')
}

// 登录接口
export const login = (data) => {
	return http('login', data, "POST")
}

// 获取系统用户接口
export const getSystemUser = () => {
	return http('getUserInfo')
}

// 获取详情数据
export const getDetail = () => {
	return http(`detail/project`)
}

// 项目详情数据
export const projectInfo = (id) => {
	return http(`project/info?id=${id}`)
}

// 获取我的喜欢列表
export const likeList = () => {
	return http('like/list')
}